package com.cgl.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

// 用户行为
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserAction {
    private int id;
    private String ip;
    private String action;
    private LocalDate createDay;
    private LocalDateTime specifiedTime;
    public static UserAction addUserAction(String ip, String action, LocalDate createDay, LocalDateTime specifiedTime) {
        return new UserAction(0,ip, action, createDay, specifiedTime);
    }
}
